import 'package:massagist/generated/json/base/json_convert_content.dart';
import 'package:massagist/models/user_info_model_entity.dart';

UserInfoModelEntity $UserInfoModelEntityFromJson(Map<String, dynamic> json) {
	final UserInfoModelEntity userInfoModelEntity = UserInfoModelEntity();
	final int? code = jsonConvert.convert<int>(json['code']);
	if (code != null) {
		userInfoModelEntity.code = code;
	}
	final String? msg = jsonConvert.convert<String>(json['msg']);
	if (msg != null) {
		userInfoModelEntity.msg = msg;
	}
	final UserInfoModelData? data = jsonConvert.convert<UserInfoModelData>(json['data']);
	if (data != null) {
		userInfoModelEntity.data = data;
	}
	return userInfoModelEntity;
}

Map<String, dynamic> $UserInfoModelEntityToJson(UserInfoModelEntity entity) {
	final Map<String, dynamic> data = <String, dynamic>{};
	data['code'] = entity.code;
	data['msg'] = entity.msg;
	data['data'] = entity.data.toJson();
	return data;
}

UserInfoModelData $UserInfoModelDataFromJson(Map<String, dynamic> json) {
	final UserInfoModelData userInfoModelData = UserInfoModelData();
	final String? key = jsonConvert.convert<String>(json['key']);
	if (key != null) {
		userInfoModelData.key = key;
	}
	final String? kefu = jsonConvert.convert<String>(json['kefu']);
	if (kefu != null) {
		userInfoModelData.kefu = kefu;
	}
	final int? tab = jsonConvert.convert<int>(json['tab']);
	if (tab != null) {
		userInfoModelData.tab = tab;
	}
	return userInfoModelData;
}

Map<String, dynamic> $UserInfoModelDataToJson(UserInfoModelData entity) {
	final Map<String, dynamic> data = <String, dynamic>{};
	data['key'] = entity.key;
	data['kefu'] = entity.kefu;
	data['tab'] = entity.tab;
	return data;
}